package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.SysPurchaseRequisitionMapper;
import com.ruoyi.system.domain.SysPurchaseRequisition;
import com.ruoyi.system.service.ISysPurchaseRequisitionService;

/**
 * 【请填写功能名称】Service业务层处理
 * 
 * @author ruoyi
 * @date 2022-03-14
 */
@Service
public class SysPurchaseRequisitionServiceImpl implements ISysPurchaseRequisitionService 
{
    @Autowired
    private SysPurchaseRequisitionMapper sysPurchaseRequisitionMapper;

    /**
     * 查询【请填写功能名称】
     * 
     * @param deviceId 【请填写功能名称】主键
     * @return 【请填写功能名称】
     */
    @Override
    public SysPurchaseRequisition selectSysPurchaseRequisitionByDeviceId(Long deviceId)
    {
        return sysPurchaseRequisitionMapper.selectSysPurchaseRequisitionByDeviceId(deviceId);
    }

    /**
     * 查询【合同信息】列表
     * 
     * @param sysPurchaseRequisition 【请填写功能名称】
     * @return 【请填写功能名称】
     */
    @Override
    public List<SysPurchaseRequisition> selectSysPurchaseRequisitionList(SysPurchaseRequisition sysPurchaseRequisition)
    {
        return sysPurchaseRequisitionMapper.selectSysPurchaseRequisitionList(sysPurchaseRequisition);
    }

    /**
     * 新增【请填写功能名称】
     * 
     * @param sysPurchaseRequisition 【请填写功能名称】
     * @return 结果
     */
    @Override
    public int insertSysPurchaseRequisition(SysPurchaseRequisition sysPurchaseRequisition)
    {
        return sysPurchaseRequisitionMapper.insertSysPurchaseRequisition(sysPurchaseRequisition);
    }

    /**
     * 修改【请填写功能名称】
     *  
     * @param sysPurchaseRequisition 【请填写功能名称】
     * @return 结果
     */
    @Override
    public int updateSysPurchaseRequisition(SysPurchaseRequisition sysPurchaseRequisition)
    {
        return sysPurchaseRequisitionMapper.updateSysPurchaseRequisition(sysPurchaseRequisition);
    }

    /**
     * 批量删除【请填写功能名称】
     * 
     * @param deviceIds 需要删除的【请填写功能名称】主键
     * @return 结果
     */
    @Override
    public int deleteSysPurchaseRequisitionByDeviceIds(Long[] deviceIds)
    {
        return sysPurchaseRequisitionMapper.deleteSysPurchaseRequisitionByDeviceIds(deviceIds);
    }

    /**
     * 删除【请填写功能名称】信息
     * 
     * @param deviceId 【请填写功能名称】主键
     * @return 结果
     */
    @Override
    public int deleteSysPurchaseRequisitionByDeviceId(Long deviceId)
    {
        return sysPurchaseRequisitionMapper.deleteSysPurchaseRequisitionByDeviceId(deviceId);
    }
}
